package com.ly.order.producer;

import com.domain.Order;
import com.ly.order.base.CusOrderTransactionListener;
import com.ass.rocketmq.constant.MQTopic;
import com.ass.rocketmq.producer.AbstractTransactionProducer;
import lombok.Getter;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Component;

@Component
@Log4j2
public class OrderTransactionProducer extends AbstractTransactionProducer<Order> {


    @Getter
    private final MQTopic mqTopic = MQTopic.ORDER_TRANSACTION_ONE;


    @Getter
    private final String instanceName = "transaction_one";


    @Getter
    private final CusOrderTransactionListener listener = new CusOrderTransactionListener();








}
